﻿<UserControl x:Class="FrontDisplay.Power.PowerPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:FrontDisplay.Localization"
    xmlns:local="clr-namespace:FrontDisplay.Controls"
    Width="800" Height="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="150" />
            <RowDefinition Height="*" />
            <RowDefinition Height="100" />
        </Grid.RowDefinitions>
        <local:OutlineTextBlock Text="{loc:Translate Key=Power.Power, IsAutoUpdate=true}" FontSize="56" Grid.ColumnSpan="3" Margin="0,20,0,40" MouseLeftButtonDown="BackButtonMouseLeftButtonDown" />
        <Label Style="{DynamicResource MediaButton}" Width="130" Height="130" HorizontalAlignment="Left" VerticalAlignment="Top" MouseLeftButtonDown="BackButtonMouseLeftButtonDown" Opacity="0.4">
            <local:OutlineTextBlock FontFamily="Webdings" FontSize="50" Text="3" StrokeThickness="1" Margin="0,0,80,40" />
        </Label>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Button Style="{DynamicResource MediaButton}" Template="{DynamicResource ButtonTemplate}" Click="RestartButtonClick" Focusable="True" VerticalAlignment="Top">
                <StackPanel>
                    <local:OutlineTextBlock FontSize="40" Text="{loc:Translate Key=Power.Restart, IsAutoUpdate=true}" HorizontalAlignment="Center" />
                    <Image x:Name="RestartImage" x:FieldModifier="private" Margin="60,20,60,0" />
                </StackPanel>
            </Button>
            <Button x:Name="SleepButton" Grid.Column="1" Style="{DynamicResource MediaButton}" Template="{DynamicResource ButtonTemplate}" Click="SleepButtonClick" Focusable="True" VerticalAlignment="Top">
                <StackPanel>
                    <local:OutlineTextBlock FontSize="40" Text="{loc:Translate Key=Power.Sleep, IsAutoUpdate=true}" HorizontalAlignment="Center" />
                    <Image x:Name="SleepImage" x:FieldModifier="private" Margin="60,20,60,0" />
                </StackPanel>
            </Button>
            <Button Grid.Column="2" Style="{DynamicResource MediaButton}" Template="{DynamicResource ButtonTemplate}" Click="ShutdownButtonClick" Focusable="True" VerticalAlignment="Top">
                <StackPanel>
                    <local:OutlineTextBlock FontSize="40" Text="{loc:Translate Key=Power.Shutdown, IsAutoUpdate=true}" HorizontalAlignment="Center" />
                    <Image x:Name="ShutdownImage" x:FieldModifier="private" Margin="60,20,60,0" />
                </StackPanel>
            </Button>
        </Grid>
    </Grid>
</UserControl>
